package com.yyq.gxdc.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yyq.gxdc.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @since 2023-12-04
 */
public interface UserMapper extends BaseMapper<User> {

    IPage<User> getAllUser(Page<User> page, @Param("query")User user);

    public User findUserByUserName(@Param("username") String username);

    User loginUser(@Param("query") User user);
}
